function createCallback(type) {
	return function() {
		alert('callback: ' + type);
	}
};

$(document).ready(function() {
	$('div.corner,div.corner_inner').corner("5px");
	$('div.corner ul.round').corner("bottom 5px");
	$('div#stock_list h3').corner("5px");

	$('#search_tabs').tabs(2,{fxAutoHeight: true,fxFade: true,bookmarkable: false});
	$('#trade_list').tabs();
	$('#product_show').tabs({bookmarkable: false});

	$('#slideshow').slideshow({
			timeout: 2000,
			type: 'random'
	});

});

function addClassName(tag, classname) {
	if (!tag.className)
	{
		tag.className = classname;
	}
	else {
		tag.className += " " + classname;
	}
}

function addFirstChild() {
	var olitems = document.getElementsByTagName("ol");
	var ulitems = document.getElementsByTagName("ul");

	for ( var i = 0 ; i < olitems.length ; i++ )
	{
		addClassName(olitems[i].getElementsByTagName("li")["0"], "first-child");
	}
	for ( var i = 0 ; i < ulitems.length ; i++ )
	{
		addClassName(ulitems[i].getElementsByTagName("li")["0"], "first-child");
	}
}

if (document.all && !window.opera)
{
	window.onload = addFirstChild;
}